chore(sdk): sync to agent_platform@2003fd2 (v0.1.13)#142
Closed
abonneth wants to merge 2 commits into
Closed
Conversation
adeprezh
approved these changes
Jun 25, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 6413660. Configure here.
| ) | ||
| batch = tail.new_events or [] if tail is not None else [] | ||
| if not batch: | ||
| break |
There was a problem hiding this comment.
Misses answer on empty tail
Medium Severity
After settlement, the new tail-drain loop in wait_for_session / async_wait_for_session exits when new_events is empty before copying tail.answer into last_changes. A final /changes payload that only sets answer can be ignored, so _final_changes may not see the answer and run_session can return None or fail schema validation.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 6413660. Configure here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Auto-generated from
agent_platform's codegen home (sdk-codegen/).Version:
0.1.13(patch; every sync bumps +0.0.1)Upstream: agent_platform@2003fd2
Note
Medium Risk
Breaking change for callers of get_session_resource (return type and usage pattern) and new optional proxy URLs on browser provisioning; otherwise generated API surface additions.
Overview
Bumps hai-agents to v0.1.13 from upstream OpenAPI/codegen.
Adds
client.quota.get_token_quota()andTokenQuotaStatusfor org token usage metering. Browser environments gain optionalBrowserNetwork/proxy_urlon create, replace, and patch.get_session_resourceis a behavior change: it now streams raw bytes (sync/async iterators) after following the presigned redirect, raisesNotFoundErroron 404, and supportschunk_sizevia request options.NotFoundErroris exported from the package.Polling helpers drain remaining session events after settle when
include_eventsis set, andSessionHandle.send_messageaccepts a plain string (wrapped as a user message). Sync/async clients still defaultapi_keyfromHAI_API_KEY, but the constructor signature no longer evaluatesgetenvat import time.Reviewed by Cursor Bugbot for commit 6413660. Bugbot is set up for automated code reviews on this repo. Configure here.